<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>变量和数组</title>
</head>
<body>
<script>
    var num1 = 24;
    let num2 = 25;
    let name = "Half Q";
    document.write(name + num1 + num2);
    let arr = [1, 3, 6];
    for (let i=0; i<arr.length; i++) {
        document.writeln(""+arr[i]);
    }
</script>
</body>
</html>